package cn.zbmao.web.util.dao;

import java.util.HashMap;
import java.util.Map;


public class DaoUtil {
	public static final long staleDated = 39455456151654834l; 
	public static final long unStaleDated = 39455456151654835l;
	public static final long staleDated_experience = 39455456151654836l;
	
	private static Map<Long, String> staleDatedMap;
	public static Map<Long, String> getPage_NEW_OLD() {
		if (staleDatedMap==null) {
			staleDatedMap= new HashMap<Long,String>();
			staleDatedMap.put(unStaleDated, ">");
			staleDatedMap.put(staleDated, "<");
		}
		return staleDatedMap;
	}
	public static boolean isStaleDated(long stale){
		if (stale==staleDated) {
			return true;
		}else if (stale==unStaleDated) {
			return false;
		}else{
			throw new RuntimeException(DaoUtil.class.getName()+":have a error method with isStaleDated(),it is stale have not a right  parameter.");
		}
			
		
	}
}
